<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%--
  Created by IntelliJ IDEA.
  User: zhang_yao_wu1993
  Date: 15/4/21
  Time: 下午10:33
--%>
<!DOCTYPE html>
<html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head lang="en">
    <meta charset="UTF-8">
    <title>ZeRur</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="/Other/Lib/jquery-2.1.3.js"></script>
    <script type="text/javascript" src="/Other/Lib/SemanticUI/dist/semantic.min.js"></script>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/button.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/label.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/menu.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/list.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/item.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/comment.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/divider.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/image.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/sticky.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/form.min.css"/>
    <link rel="stylesheet" href="/Other/Lib/SemanticUI/dist/components/icon.min.css"/>
    <script type="text/javascript" src="/Other/JavaScript/blog_Article.js"></script>
    <link rel="stylesheet" href="/Other/StyleSheet/blog_Article.css"/>
</head>
<body style="background: RGBA(236, 236, 236, 1)">
<%-- header --%>
<div id="header">
    <sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_USER')">
        <div class="ui divided horizontal list">
            <div class="item"><a href="/">欢迎页</a></div>
            <div class="item"><a href="/MainPage">主页</a></div>
            <div class="item"><a href="/MessagePage">留言</a></div>
            <div class="item"><a href="/IndividualCenter">个人中心</a></div>
            <div class="item"><a href="/ManagePage">管理</a></div>
            <div class="item"><a onclick="logout()">登出</a></div>
            <form action="/j_logout" method="post">
                <input type="hidden"
                       name="${_csrf.parameterName}"
                       value="${_csrf.token}"/>
            </form>
            <script>
                function logout() {
                    $("#header div form").submit();
                }
            </script>
        </div>
    </sec:authorize>
    <sec:authorize access="isAnonymous()">
        <div class="ui divided horizontal list">
            <div class="item">你尚未登陆</div>
            <div class="item"><a href="/">欢迎</a></div>
            <div class="item"><a href="/MainPage">主页</a></div>
            <div class="item"><a href="/MessagePage">留言</a></div>
            <div class="item"><a href="/ManagePage">管理</a></div>
            <div class="item"><a href="/LoginPage">登陆</a></div>
            <div class="item"><a href="/RegisterPage">注册</a></div>
        </div>
    </sec:authorize>
</div>
<%-- end header --%>
<%-- body --%>
<div id="body">
    <%-- article --%>
    <div class="ui label">
        <a class="ui ribbon label teal huge">${blogArticlePageVo.title}</a>
        <iframe src="/ArticlePageDelegate/${blogArticlePageVo.uuid}" id="iframe" frameBorder="0" scrolling="no" width="100%"
                onLoad="frameHeightAdapter()"></iframe>
    </div>
    <%-- end article --%>
</div>
<%-- end body --%>
<%-- footer --%>
<div id="footer">
    <span>zhang_yao_wu1993@yeah.net</span>
    <span>辽ICP备15003806号</span>
</div>
<%-- end footer --%>
<div class="clearboth"></div>
</body>
</html>
